package com.wzy.shirostudy.mapper;

import com.wzy.shirostudy.domain.SysPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wzy
 * @since 2020-04-16
 */
public interface SysPermissionMapper extends BaseMapper<SysPermission> {


    /**
     * 通过用户id获取用户权限
     * @param userId
     * @return
     */
    List<SysPermission> selectPermissionByUserId(Integer userId);
}
